<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;

class AdminMenuSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $data = [
            ['title'=>'卡券管理','name'=>'coupon','icon'=>'layui-icon-gift'],


            ['title'=>'卡券列表','name'=>'list','parent'=>1],
            ['title'=>'领取记录','name'=>'record','parent'=>1],
            ['title'=>'使用记录','name'=>'use','parent'=>1],

        ];

        collect($data)->each(function ($item){
            \App\Models\AdminMenu::create($item);
        });
    }
}
